import { request } from '@/utils/request';

/**
 * @description 查看流程
 */
export function getFlow(flowType?: string) {
  return request({
    url: `/manage/admin/flow/getList/${flowType}`,
    method: 'get',
  });
}

/**
 * @description 编辑流程
 */
//
export function updateFlow(data: API.UpdateFlowParams) {
  return request({
    url: '/manage/admin/flow/edit',
    method: 'put',
    data,
  });
}

/**
 * @description 选择人员
 */
//
export function getUserByType(deptId, userType) {
  return request({
    url: `/manage/admin/user/getUserList/${deptId}/${userType}`,
    method: 'get',
  });
}
